package lv.servidordisqueria.repositorio.util;

import org.hibernate.type.CharBooleanType;

/**
 * 
 */
public class DBBooleanValue extends CharBooleanType {

	private static final long serialVersionUID = 6421769960705681929L;

	public static final String TRUE_STRING_VALUE = "1";
	public static final String FALSE_STRING_VALUE = "0";

	protected final String getTrueString() {
		return TRUE_STRING_VALUE;
	}

	protected final String getFalseString() {
		return FALSE_STRING_VALUE;
	}

	public String getName() {
		return this.getClass().getSimpleName();
	}
}